package com.example.mallsystem1104.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mallsystem1104.entity.Carousel;
import com.example.mallsystem1104.mapper.CarouselMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author zy
 * @Date 2024/12/11 14:30
 * @packageName:com.example.mallsystem1104.service
 * @ClassName:CarourselService
 */
@Service
public class CarouselService extends ServiceImpl<CarouselMapper, Carousel> {

    @Resource
    private CarouselMapper carouselMapper;

    public List<Carousel> getAllCarousel() {
        List<Carousel> carouselList=carouselMapper.getAllCarousel();
        return carouselList;
    }
}
